package com.xiaohao.student_course.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created with IntelliJ IDEA.
 *
 * @author 小浩
 * @date 2018-12-15 16:49
 * @package com.xiaohao.student_course.bean
 * @description 教师
 */
@Data
@Table
@Entity

@AllArgsConstructor
@NoArgsConstructor
public class Teacher {
    @Id
    private int id;
    private String teachername;
    private String majorname;
    private int old;
    private String sex;
}
